import request from '@/utils/request'
import {
  PageResultCompanyInfoVo,
  DeepRequired,
  CompanyPageQuery,
} from '../../interface'

/**
 * 获取公司信息分页
 * /company/more
 */
export function getCompanyMore(params: GetCompanyMoreParams) {
  const paramsInput = {
    ...params.companyPageQuery,
  }
  return request.get<DeepRequired<PageResultCompanyInfoVo>>(`/company/more`, {
    params: paramsInput,
  })
}

interface GetCompanyMoreParams {
  companyPageQuery: CompanyPageQuery
}
